package example.JSON.Gsonexample;

import com.google.gson.Gson;

public class GsonImplementation {
	public void getGsonFromObject(){
		Gson gson = new Gson();
		SampleObject sampleObject = new SampleObject();
		
		String result = gson.toJson(sampleObject);
		
	}
	
	public void getObjectFromGson(){
		Gson gson = new Gson();
		SampleObject sampleObject = null;
		String jsonString = "";
		
		sampleObject = gson.fromJson(jsonString, SampleObject.class);
	}
}
